package net.wsnetwork.jawa.common;

import java.nio.charset.Charset;
import java.util.regex.Pattern;

public final class Constants {
    public static final Charset UTF_8              = Charset.forName("utf-8");
    public static final Pattern HEADER_PATTERN     = Pattern.compile("([a-zA-Z\\-]*): ?(.*)");
    public static final String SERVER_HEADER       = "Server: JAWA/1.0\r\n";
    public static final String NEWLINE             = "\r\n";
    public static final int NUM_BUCKETS            = 1000;
    public static final int HEARTBEAT_INTERVAL     = 1000;
    public static final String MASTER_SERVICE_NAME = "Master";
    public static final int NUM_TIMEOUTS           = 3;

    /**
     * Provide a private constructor to disable the default constructor and disable instantiating
     * this class.
     */
    private Constants() { }
}
